package com.cyl.manager.pms.resp;

import com.cyl.manager.pms.domain.entity.Sku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.sincere.common.annotation.Excel;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "商品响应对象")
public class ProductResp {

    @ApiModelProperty("商品ID")
    @Excel(name = "商品ID")
    private Long id;
    
    @ApiModelProperty("品牌ID")
    @Excel(name = "品牌ID")
    private Long brandId;

    @ApiModelProperty("品牌名称")
    @Excel(name = "品牌名称")
    private String brandName;


    @ApiModelProperty("产品详情网页内容")
    @Excel(name = "产品详情网页内容")
    private String productAttr;

    @ApiModelProperty("商品分类ID")
    @Excel(name = "商品分类ID")
    private Long categoryId;

    @ApiModelProperty("商品分类名称")
    @Excel(name = "商品分类名称")
    private String productCategoryName;

    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称")
    private String name;
    
    @ApiModelProperty("图片")
    @Excel(name = "图片")
    private String pic;

    @ApiModelProperty("单位")
    @Excel(name = "单位")
    private String unit;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    @Excel(name = "画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("商品编码")
    @Excel(name = "商品编码")
    private String outProductId;
    
    @ApiModelProperty("上架状态")
    @Excel(name = "上架状态", readConverterExp = "0=下架,1=上架")
    private Integer publishStatus;

    @ApiModelProperty("产品详情网页内容")
    @Excel(name = "产品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("移动端网页详情")
    @Excel(name = "移动端网页详情")
    private String detailMobileHtml;

    
    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Integer sort;
    
    @ApiModelProperty("价格")
    @Excel(name = "价格")
    private BigDecimal price;

    @ApiModelProperty("商品重量，默认为克")
    @Excel(name = "商品重量，默认为克")
    private BigDecimal weight;
    
    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    
    @ApiModelProperty("更新时间")
    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;
    
    @ApiModelProperty("创建者")
    private Long createBy;
    
    @ApiModelProperty("更新者")
    private Long updateBy;

    private List<Sku> skuList;
} 